<template>
  <div>
    <MyTable></MyTable>
  </div>
</template>

<script>
import MyTable from "../components/MyTable.vue"
import axios from 'axios'
axios.defaults.baseURL="https://www.escook.cn"
export default {
  components:{
    MyTable
  },
  created(){
    axios({
      url:'/api/goods'
    })
    .then(res=>{
      console.log(res)
      this.list=res.data.data
    })
  },
  data(){
    return{
      list:[]
    }
  }
}
</script>

<style>

</style>